package com.springcloud.feign.springcloudfeignconsumer.controller;

import com.springcloud.feign.api.OpenApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description : 消费者测试类
 * @Author : asus
 * @Version : xxx
 * @Date : 2021/6/14 22:40
 */
@RestController
@RequestMapping("/consumer")
public class ConsumerTest {
    @Autowired
    private OpenApi openApi;

    @GetMapping("/hello")
    public String helloTest(@RequestParam("like") String like) {
        String hello = openApi.hello(like);
        return hello;
    }
}
